package com.hzit.mmcb.core.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.hzit.mmcb.core.pojo.entity.TransFlow;
import com.hzit.mmcb.core.mapper.TransFlowMapper;
import com.hzit.mmcb.core.service.TransFlowService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 交易流水表 服务实现类
 * </p>
 *
 * @author ljh
 * @since 2024-08-27
 */
@Service
public class TransFlowServiceImpl extends ServiceImpl<TransFlowMapper, TransFlow> implements TransFlowService {

    @Override
    public List<TransFlow> findByUserId(Long userId) {
        List<TransFlow> list = this.list(new LambdaQueryWrapper<TransFlow>().eq(TransFlow::getUserId, userId));
        return list;
    }
}
